package com.boesch.electroOffice.business.businessObjectImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.boesch.electroOffice.business.businessObject.ProjectBusinessObject;
import com.boesch.electroOffice.business.common.BusinessException;
import com.boesch.electroOffice.dataaccess.common.IllegalDataAccessException;
import com.boesch.electroOffice.dataaccess.dao.messerli.ProjectDao;
import com.boesch.electroOffice.model.messerli.Project;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;

@Service
public class ProjectBusinessObjectImpl implements ProjectBusinessObject {

	private static final Log log = LogFactoryUtil.getLog(ProjectBusinessObjectImpl.class);
	
	@Autowired
	private ProjectDao projectDao;
	
	public List<Project> readAllProjects() throws IllegalDataAccessException,
			BusinessException {
		return projectDao.readAllProjects();
	}
}
